package com.hnkywl.sts.entity.xsgl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.base.Sjzdz;
import com.hnkywl.sts.entity.organ.Nbgs;
import com.hnkywl.sts.entity.sys.Cd;
import com.hnkywl.sts.entity.sys.Gg;
import com.hnkywl.sts.entity.sys.Pm;
import com.hnkywl.sts.entity.sys.Yg;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.Date;

/**
 * 说明：库存报价
 * 包:        com.hnkywl.sts.entity.xsgl
 * 类描述:    库存报价
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name = "T_BIZ_KCBJ")
@Where(clause = "deleted!='1'")
public class Kcbj extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqKcbj", allocationSize = 1, sequenceName = "SEQ_BIZ_KCBJ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqKcbj")
    private Long id;

//    /**
//     * 库存
//     */
//    @ManyToOne
//    @JoinColumn(name="KC_ID")
//    private Kc kc;
    /**
     * 报价公司
     */
    @ManyToOne
    @JoinColumn(name="BJGS_ID")
    private Nbgs bjgs;
    /**
     * 规格
     */
    @ManyToOne
    @JoinColumn(name="GG_ID")
    private Gg gg;
    /**
     * 产地
     */
    @ManyToOne
    @JoinColumn(name="CD_SJZDZ_ID")
    private Sjzdz cd;

    /**
     * 报价日期
     */
    private Date bjrq;

    /**
     * 报价
     */
    private Double bj;

    /**
     * 核定价格
     */
    private Double hdbj;

    /**
     * 市场报价
     */
    private Double scbj;

    /**
     * 核定市场报价
     */
    private Double hdscbj;

    /**
     * 网价
     */
    private Double wj;

    /**
     * 核定网价
     */
    private Double hdwj;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getBjrq() {
        return bjrq;
    }

    public void setBjrq(Date bjrq) {
        this.bjrq = bjrq;
    }


    public Double getBj() {
        return bj;
    }

    public void setBj(Double bj) {
        this.bj = bj;
    }

    public Double getHdbj() {
        return hdbj;
    }

    public void setHdbj(Double hdbj) {
        this.hdbj = hdbj;
    }

    public Double getScbj() {
        return scbj;
    }

    public void setScbj(Double scbj) {
        this.scbj = scbj;
    }

    public Double getHdscbj() {
        return hdscbj;
    }

    public void setHdscbj(Double hdscbj) {
        this.hdscbj = hdscbj;
    }

    public Double getWj() {
        return wj;
    }

    public void setWj(Double wj) {
        this.wj = wj;
    }

    public Double getHdwj() {
        return hdwj;
    }

    public void setHdwj(Double hdwj) {
        this.hdwj = hdwj;
    }

    public Gg getGg() {
        return gg;
    }

    public void setGg(Gg gg) {
        this.gg = gg;
    }

    public Nbgs getBjgs() {
        return bjgs;
    }

    public void setBjgs(Nbgs bjgs) {
        this.bjgs = bjgs;
    }

    public Sjzdz getCd() {
        return cd;
    }

    public void setCd(Sjzdz cd) {
        this.cd = cd;
    }
}
